refactor: remove dependency to boost.math#532
Conversation
|
Boost dependency footprint vs Header-inclusion weights (graph files pulling each direct dependency in):
Transitive Boost modules: 69 → 69 (0) |
|
Compiler-warning counts vs
|
jeremy-murphy
left a comment
There was a problem hiding this comment.
Why did you flag this as a breaking change? It doesn't seem like it to me.
|
I don't think I flagged this PR as breaking. The breaking change is in another one, where BGL public API exposed MPL types, that can now be STL types. |
| BOOST_STATIC_ASSERT( | ||
| property_traits< PositionMap >::value_type::dimensions >= 2); | ||
| const double pi = boost::math::constants::pi< double >(); | ||
| const double pi = 3.14159265358979323846; |
There was a problem hiding this comment.
out of curiosity: any reason for not using https://en.cppreference.com/cpp/numeric/constants ?
There was a problem hiding this comment.
They are C++20 😭😭😭
But yeah that was my hope too 😄 this std::numbers lib is dope ! Too bad it arrives so late !
There was a problem hiding this comment.
Of course! I should have checked before asking. Anyway, great job @Becheler !
There was a problem hiding this comment.
Thanks to you for your review !
Before submitting
developbranch.Type of change
Does this PR introduce a breaking change?
What this PR does
Motivation
Remove dependency on Boost.Math: it's overkill here for just one STL function and 2 constants.
Testing
Checklist
b2in thetest/directory).